home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / __MANDEL / TCL_SOUR / CDWDLOGD.C < prev    next >
Text File  |  1992-03-27  |  1KB  |  42 lines

  1. //    CDWDLOGDirector.c
  2.  
  3. #include <CDWDLOGDirector.h>
  4.  
  5. /******************************************************************************
  6.  CDWDLOGDirector.c
  7.  
  8.     SUPERCLASS = CDLOGDirector
  9.     
  10.     override to allow for a CDWDLOGDialog to be created instead of a CDLOGDialog.
  11.     
  12.  
  13.  ******************************************************************************/
  14.  
  15. #include <CDWDLOGDialog.h>
  16. #include <CDecorator.h>
  17.  
  18. extern struct CDesktop *gDesktop;
  19. extern CDecorator *gDecorator;
  20.  
  21. /******************************************************************************
  22.  IDLOGDirector
  23.  
  24.      Initialize a DLOGDirector object. Creates a DLOGDialog using the
  25.      specified DLOGid.
  26. ******************************************************************************/
  27.  
  28. void CDWDLOGDirector::IDLOGDirector( short DLOGid,
  29.         CDirectorOwner *aSupervisor)
  30. {
  31.     CDWDLOGDialog *dialog;
  32.     
  33.     CDLOGDirector::IDLOGDirector( DLOGid, aSupervisor);
  34.     
  35.     dialog = new( CDWDLOGDialog);
  36.     itsWindow = dialog;
  37.     
  38.     dialog->IDLOGDialog( DLOGid, gDesktop, this);
  39.     
  40.     gDecorator->CenterWindow( dialog);
  41.  
  42. }